package exp4;

public class Exp4_3 {
	public static void main(String[] args) {
		int[] a = { 7, 4, 8, 9, 1, 5 };
		int t;
		for (int e : a) {
			System.out.printf("%-4d",e);
		}
		System.out.println();
		for(int i=1;i<=5;i++) {
			t=a[5];
			for(int j=5;j>=1;j--) {
				a[j]=a[j-1];
			}
			a[0]=t;
			for (int e : a) {
				System.out.printf("%-4d",e);
			}
			System.out.println();
		}
	}
}
